<?php
namespace app\model\admin\material;

use laytp\BaseModel;

class MaterialGroupData extends BaseModel
{
    protected $name = 'material_group_data';

    public function group(){
        return $this->hasOne(MaterialGroup::class,"id","material_group_id")->bind(["group_name"=>"name"]);
    }

    public function content(){
        return $this->hasOne(MaterialTitleContent::class,"id","content_id")->bind(["content_name"=>"name"]);
    }
}